<%@ page language="java" import="java.sql.*"%>
<html>
<head><title>Read from mySQL Database</title>
</head>
<body>
<center>
<p><font color="#0080FF" size="18">Add User Page</font></p>
<%
	
 	try
       {
		if(session.getAttribute("logged_in") == "true")
		{
			out.println("<p><h2>Logged In</p></h2>");
			if(session.getAttribute("user_level") == "administrator")
			{
				out.println("<FORM ACTION=add_user_exec.jsp METHOD=POST><p>Name:<INPUT TYPE=TEXT NAME=name><br>User Name:<INPUT TYPE=TEXT NAME=username><br><br><input type=\"submit\" value=Add><br></FORM></p>");
			}
		}
		else
		{
			out.println("Not Logged In");
		}

       }
       catch(Exception e)
       {
           out.println(e);
       }	
%>
<a href=menu.jsp>Main Menu</a>
</center>
</body>
</table>
</center>
</div>


</body>
</html>

